﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YmatouSeller.NoticeAPI.Model.Enums
{
    /// <summary>
    ///  枚举说明
    /// </summary>
    [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
    public class EnumDescriptionAttribute : Attribute
    {
        /// <summary>
        ///  描述
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        ///  是否可用
        /// </summary>
        public bool Enable
        {
            get { return _enable; }
            set { _enable = value; }
        }
        private bool _enable = true;

        /// <summary>
        ///  排序号
        /// </summary>
        public int SortIndex { get; set; }
    }
}
